//
//  LBMeAddrCell.m
//  loveBeen
//
//  Created by lc on 2016/11/23.
//  Copyright © 2016年 loveBeen. All rights reserved.
//

#import "LBMeAddrCell.h"

@interface LBMeAddrCell ()

@end

@implementation LBMeAddrCell

-(void)setModel:(LBMeAddrModel *)model {
    _model = model;
    self.lb_userName.text = model.userName;
    self.lb_userPhone.text = model.phoneNumber;
    self.lb_userAddress.text = model.address;
}
- (IBAction)updateAddress:(UIButton *)sender {
    
    //[[sender superview] superview]
    //跳转页面需设置代理
    if ([self.delegate respondsToSelector:@selector(updateAddr:)]) {
        [self.delegate updateAddr:self];
    }
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
